//
//  Shape.m
//  Demo0010
//
//  Created by zTercel on 13-1-3.
//  Copyright (c) 2013年 zTercel. All rights reserved.
//

#import "Shape.h"

@implementation Shape
@synthesize _fillColor;
@synthesize _sideColor;

- (void)paint
{
    NSLog(@"fill Color: 0x%X  side Color: 0x%X", _fillColor, _sideColor);
}

- (void)erase
{
    NSLog(@"erase Color: 0x%X  side Color: 0x%X", ~_fillColor, ~_sideColor);
}

@end

@implementation Rectangle

- (void)paint
{
    [super paint];
    NSLog(@"----------------------");
    for (int ii = 0; ii < 5; ii++)
    {
        NSLog(@"|                    |");
    }
    NSLog(@"----------------------");
}

- (void)erase
{
    [super erase];
    NSLog(@"erase rectangle");
}

@end

@implementation Triangle

- (void)paint
{
    [super paint];
    NSLog(@"          *          ");
    NSLog(@"         * *         ");
    NSLog(@"        *   *        ");
    NSLog(@"       *     *       ");
    NSLog(@"      *       *      ");
    NSLog(@"     *         *     ");
    NSLog(@"    * * * * * * *    ");
    
    return;
}

- (void)erase
{
    [super erase];
    NSLog(@"erase triangle");
}

@end
